package java8;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * Description:  时间类
 *
 * @author jiangbang
 * @version 1.0
 * @date: 2018年03月22日
 * @since JDK 1.8
 */
public class DateUtil {

    public static void main(String[] args) {
        LocalDate localDate  = LocalDate.now();
        LocalDateTime localDateTime = LocalDateTime.now();
        System.out.println(localDate);
        System.out.println(localDateTime);


    }
}
